package org.example.httpserver.service.impl;

import org.example.httpserver.mapper.WechatMapper;
import org.example.httpserver.service.WechatLoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class WechatLoginServiceImpl implements WechatLoginService {

    @Autowired
    private  WechatMapper wechatMapper;

    @Override
    public int loginByUsername(String username) {
        return wechatMapper.login(username);
    }

    @Override
    public String getImageByUsername(String username) {
        return wechatMapper.getImage(username);
    }
}
